import request from '@/sheep/request';

const SecondProductApi = {
	// 获得分页列表
  getSecondProductPage: (id) => {
	return request({
		url: '/second/list',
		method: 'GET',
		params: { id }
	});
  },
  // 发布商品
  pushSecondProduct: (data) => {
  	return request({
  		url: '/second/push',
  		method: 'post',
  		data
  	});
  },
  // 获得商品详情
  getDetailById: (id) => {
  	return request({
  		url: '/second/detailById',
  		method: 'GET',
  		params: { productId:id }
  	});
  }
};

export default SecondProductApi;